Is it possible to use NodeMcu Lua ESP8266 ESP-12E act as a keyboard

Is it possible to use NodeMcu Lua ESP8266 ESP-12E act as a keyboard
I want to do this because I want to use the ESP to wake up my computer typing a password logIN using Alexa
However the stock keyboard library Will not compile with the ESP8266

The ESP8266 does not have native USB, hence it cannot be used to act as a keyboard.

You need something with native USB (like a Micro, Leonardo, Due, or Zero - things where there's a USB port connected directly to the microcontroller, not through a USB-serial adapter like ch340g/cp2102/ft232 (things where the usb serial adapter is a 16u2 can if you reprogram the 16u2 - hiduino does this - but it's not relevant for you, since nobody puts 16u2's onto esp8266-based boards).

NodeMCU boards do have a USB to Serial converter on board. The issue, as I understand it, is that Windows will wake up on input from a USB HID (Human Interface Device (mouse or keyboard typically)), but the NodeMCU will register as a serial COM port. I don't think Windows will wake on serial input.