Fixed mode set on key press.
ShapeView memory improvements.