Restarting your HP laptop can fix temporary software or driver issues with the keyboard. Check if your keyboard is locked by pressing and holding the right Shift key for 8 seconds. Clean your keyboard ...
If your Logitech keyboard is not working, check for problems with the connection, update the drivers, or try the other methods here.