implemented code_read_async() and all the relative function that this function requires into input.java

Now displaygameinfo window responses to keyboard and it's fully functional (i hope)
rewrote run_machine() in mame.java in order to clean up a bit. It seems to work as it should