Replace M_PI with method
Add support of keypad keys