# Keyboard control for Unicorn pHAT?

**URL:** <https://forums.pimoroni.com/t/keyboard-control-for-unicorn-phat/17569>\
**Category:** Support\
**Created:** [July 25, 2021, 1:43am UTC](https://forums.pimoroni.com/t/keyboard-control-for-unicorn-phat/17569 "2021-07-25T01:43:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcfletcher](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jcfletcher](https://forums.pimoroni.com/u/jcfletcher)\
**Post date:** [July 25, 2021, 1:43am UTC](https://forums.pimoroni.com/t/keyboard-control-for-unicorn-phat/17569/1 "2021-07-25T01:43:07Z")

</div>

Hi! I am slowly, sloooooowwwwllyyy working on a Unicorn pHAT-based busy status light, and I keep simplifying the project further and further, and now what I am trying to do is connect a keyboard (or, more specifically, a Keybow Mini on another Pi Zero) to the light with a USB cable and push buttons to change colors.

However! My understanding of the Unicorn code and indeed all of Python is still shaky, so I was wondering if anyone had previously set up keyboard control for the pHAT and could point me to some examples or guides! Thanks!!!

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 25, 2021, 7:29am UTC](https://forums.pimoroni.com/t/keyboard-control-for-unicorn-phat/17569/2 "2021-07-25T07:29:12Z")

</div>

This may help you get started.  
[Controlling Your Robot: USB HID/Wireless Keyboards - Pimoroni Yarr-niversity](https://learn.pimoroni.com/tutorial/robots/controlling-your-robot-wireless-keyboard)  
You’ll have to adapt it somewhat. Set the keybow buttons up to send specific key presses, then set the Unicorn / Pi up to look for and act on those key presses.  
I tried something similar with mixed results.  
[Use a media keyboard with your pHat Beat, can it be done? - Support - Pimoroni Buccaneers](https://forums.pimoroni.com/t/use-a-media-keyboard-with-your-phat-beat-can-it-be-done/5176)
