Create faster key cache for main game loop (client)

Cache control keys to improve the speed of the run loop (client)

Basic timing comparisons for the two improved functions (that are called from within the main run loop) are here: http://pastebin.com/Gr2n27je