game loop additions including a hash for key commands