[Python Trik Test] Added menu key press handlers