Minor bugfixes with keyboardcontrol & resize

#275