Keyboard input and basic triangle