added keyhandler + output