keyhandler and some drawing components