I would like to get a keyboard input in my Raspi, but i wouldn't like to plug a keyboard to it. If I've connected my Raspberry pi 3 to a PC, is there any possibility to use PC's keyboard both in the PC and in the Raspy at the same time?

Thank you!

  • yes, there is a possibility ... what does at the same time mean here? ... what do you expect to happen?
    – jsotola
    Commented Oct 9, 2021 at 19:12
  • for example, im writting a document in my PC. So everytime the key 'P' is pressed, the raspi detects it and calls a function. Commented Oct 9, 2021 at 19:28

1 Answer 1


You can share a keyboard over network using https://github.com/debauchee/barrier. Install it on you RPi:

sudo apt -y install barrier

and on your PC and point one to each other.

  • The thing is that this only eliminates the barrier between the PC and the Raspi. What I would like to do is that when you type sth in your PC, you also type it in the Raspberry. Commented Oct 9, 2021 at 19:13

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.