For Compact Keyboards without Eject or Power:
Mac:
Compact keyboards on Mac may not have an Eject or Power key. In this case, you can use a different method to lock your screen:
Press “Command” + “Control” + “Q” to quickly lock your screen.
Alternatively, you can set up a hot corner to lock your screen by going to System Preferences > Mission Control > Hot Corners, and then selecting a corner to lock your screen when your cursor is moved to that corner.
PC:
For a compact keyboard on a Windows PC, you can lock your computer using the following shortcut:
Press “Windows” + “L” keys to lock your PC.
These shortcuts will lock your screen, effectively disabling the keyboard until you unlock the screen by entering your password or using another authentication method.