key5 library implementing input method concept for devices with 5 buttons. Installation $ pip install keyboard $ git clone https://github.com/zgyr/key5.git Usage import key5 print(key5.roll('Hello, world!')) Example