Separated handlers into their own module.
Added q key to quit as well.