Added key input support. Currently not able to get more than one key at
a time.