somewhat buggy redesign
some keyboard fixes
add Palette class for later