You have to write code that does that, you can use target and make a route to get close to whatever you are targeting, but to send keystrokes you have to use /keypress, /sendkey or /press. Also If you want your toon to have a mind of his own you need to program it too.