techtutorialsx.com
Micro:bit MicroPython: Getting the status of the buttons
Obtaining the status of the Micro:Bit buttons (A and B) using MicroPython.