fixed state:keypress() function. Added pause functionality to gameState