Fixed structure name typo
Fixed structure typo
Added keyboard state creator/destroyer
Moved event handling into seperate function