So I wanna build something which, when it receives a remote signal, presses the spacebar on my laptop keyboard. I tried using the Keyboard.press() but it is available only for Leonardo. Is there any way I can use it in my Uno, without having to mess with the firmware?

If not, what else can I use to accomplish my goal?

  • 1
    – Majenko
    Commented Jun 28, 2020 at 14:20
  • @Majenko Are you sure this has no dangers at all?
    – DeathVenom
    Commented Jun 28, 2020 at 14:46
  • 1
    You can do that without burn a new bootloader via an interface application. The disadvantage is that you have to code a new application. You can do that with Java, C++, C#, ... You can send a message through serial and received it with your app. Tha's not the best way.
    – 2CoB9
    Commented Jun 28, 2020 at 14:54
  • 1
    you could send a signal character over serial ... run a Processing sketch on the laptop that generates a keypress everytime the signal character is received
    – jsotola
    Commented Jun 28, 2020 at 16:19
  • 2
    Control a servo that physically presses the spacebar...
    – Majenko
    Commented Jun 28, 2020 at 23:06

2 Answers 2


On Windows you can use a serial to keyboard redirector like this one

It can start with windows, Im using it for a long time without any issues. enter image description here


if you have some knowledge in Java or Python you can interface your Arduino board to PC, through Arduino's SerialPort. When Arduino sends a byte, for example, 0xAB, your Java or Python script sends a fake key-press event. I hope this can help. Good luck!

  • are you sure you can send a keypress event to any application from other application?
    – Juraj
    Commented Jun 29, 2020 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.