ccxt library for interacting with cryptocurrency exchanges and pandas for data manipulation. ccxt library for interacting with cryptocurrency exchanges and pandas for data manipulation. keyboard module. This module allows you to listen for keyboard events and execute code in response. Below is a guide on how to use the keyboard module to handle keyboard press events. Shell function to execute a Python script or by using the RunPython method available in newer versions of Excel. Here's how you can do it using both methods: