#!/usr/bin/env python"""You can use this tool to find out values of keypresses"""importcursesSEPARATOR='; '@curses.wrapperdefmain(window):curses.mousemask(curses.ALL_MOUSE_EVENTS)curses.mouseinterval(0)whileTrue:char=window.getch()ifchar==curses.KEY_MOUSE:window.addstr(repr(curses.getmouse())+SEPARATOR)else:window.addstr(str(char)+SEPARATOR)