Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

donno2048/getkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getkey

A Python module to get the pressed key

Installation

From PyPI

pip3 install pygetkey

From GitHub

pip3 install git+https://github.com/donno2048/getkey

Usage

import getkey
getkey.get_key() # Wait for a key to be pressed and return it
getkey.get_last_key() # Don't wait for a key to be pressed and return the last pressed key (mainly for "async" loops)