Added button code for emulator

Run the emulator test and type help to see what commands you can do.