work on splines and keyboard input