Made use of event.key everywhere now. Use switch