See what happens if you first switch off your mouse, then sleep your Mac with the keyboard: CMD+ALT+eject key


iMac (19,1, 3.1 GHz i5, 12.7.4, 40 Gb RAM); MacBook Air (1.8 Ghz, 8 Gb RAM, 10.14.6, 256 Gb SSD) Vodafone router and Devolo Wi-Fi Extender, Canon TS8351 printer/scanner.