Create F and keyhandler