I don't know. I saw http://scratch.mit.edu/projects/12439417/ and wanted to see if I could make a project that detected a line. It detects almost all cases, but some don't work. :( (If it is really really not steep of a line but not flat) Oh yes you can use arrow keys to move your guy but you'll fall through the line if you try to move up. ;)
As I said, inspired by http://scratch.mit.edu/projects/12439417/.