Added key handling code. Added tilemap rendering code.