Piano Keys Unblocked

A three-octave synth piano you play with your computer keyboard, with voices, wave shapes and key shifting.

Piano Keys is a music toy with 36 keys arranged in three stacked rows, one octave each, with the deepest notes along the bottom. Your browser builds each sound on the spot instead of playing recordings, so a note starts the instant you press. You can play Piano Keys unblocked with your computer keyboard, a mouse or a touchscreen. There’s no score or goal, just a place to try sounds and work out songs. Frank Force first wrote it to fit a piano into about one kilobyte of code, and this is his expanded version.

How to Play Piano Keys

Your computer keyboard maps onto the piano row by row, and each piano key shows its letter:

  • Bottom letter row, Z to M: the lowest octave. Z is C, and the keys just above in the A row (S, D, G, H, J) are the black keys.
  • Q row plus the numbers above it: the middle octave, laid out the same way. Q is C, and 2, 3, 5, 6 and 7 are the black keys.
  • I, O, P, the brackets and the 9, 0 and = keys: the start of the top octave.

The comma, L, period, semicolon and slash keys are a second way to play the first five notes of the middle octave. That lets you play across the low-to-middle break with one hand.

With a mouse, press and hold a key, or hold the button and sweep across the keys to glide through a scale. A key glows red while it sounds, then fades back. When you let go, the note doesn’t cut off instantly. It fades out over about a third of a second, which keeps the sound smooth.

Voices and Wave Shapes

The four small icons at the top choose a voice. Each voice stacks several tones on top of each other to make its sound:

  • Piano icon (the default): layers a note with tones one, two and three octaves up, which gives a bright, organ-like sound.
  • Saxophone icon: uses only odd overtones, for a hollow, brassy sound.
  • Violin icon: the note plus its first two overtones, a softer blend that leans toward strings.
  • Wave icon: one single tone, pitched two octaves above the piano voice, good for hearing the wave shape on its own.

The Shape menu changes the wave used by every voice: sine, square, sawtooth or triangle. Sine sounds smooth and round, triangle is a bit brighter, and square and sawtooth sound buzzy. With four voices and four shapes, you get 16 different sounds.

Octave and Key Controls

With both set to 0, the bottom-left key on the piano voice is the C two octaves below middle C. Octave moves the whole piano up or down by full octaves, from -3 to +3. Key shifts it in half steps, from -12 to +12. Change them with the small arrows next to each box, because typing into the boxes is blocked.

These two controls make the same fingering play in a new range. If a song is too low on the Z row, raise the Octave by one instead of moving your hand.

Things to Try

  1. One note, four waves. Hold a single key and switch through every shape to hear how much it changes.
  2. Make a bass line. Play low notes on the Z row under chords on the Q row.
  3. Transpose a tune. Play a short pattern, change Key by a few steps, and play it again to hear it move.
  4. Build chords. Hold Q, E and T together for a C major chord, then try other groups of three.
  5. Learn a scale. The white keys from Q to U, then I, play a C major scale from C up to the next C.
  6. Compare voices. Play the same chord on each icon and pick your favorite.

A common mistake is mashing many keys at once. Each extra note adds more sound, so big clusters get loud and muddy fast. Three or four notes at a time sounds cleaner.

Phones, Chromebooks and Quiet Rooms

A laptop or Chromebook keyboard is the best way to play, since it covers 32 of the 36 notes. The four highest keys have no letter and need a click. On a tablet or phone you can touch and hold keys and play several at once, but the keys are small and there’s no letter guide.

Sound starts with your first key press, never before. This game makes noise by design, so wear headphones around others. Nothing is saved, so your voice and shape choices reset when you reload.

More Creative Games

If you like making things instead of winning, look through the casual games or try:

  • PixelCraft for drawing pixel art and animating your own sprites.
  • Typer if you’d rather use the keyboard for speed, hitting letters before they reach the core.

Quick facts

Category
Casual Games
Devices
Best on computer, playable on tablet
Controls
Keyboard, Mouse, Touch
Players
1 player
Price
Free, no sign-up
  • music
  • piano
  • synth
  • creative

How to control Piano Keys

ActionKeyboardMouseTouch
Play notes in the lowest octaveZ S X D C V G B H N J M——
Play notes in the middle octaveQ 2 W 3 E R 5 T 6 Y 7 U——
Play notes in the top octaveI 9 O 0 P [ = ]——
Play or hold any key—Press and hold on a key, or drag across keys with the button downTouch and hold a key
Change voice, wave shape, octave or key—Click the voice buttons, the Shape menu, or the arrows on Octave and KeyTap the same controls

Made by

Frank Force · originally “1Keys”

Code license
GPL-3.0
Art & sound
GPL-3.0 (all sound synthesized with the Web Audio API, no image or audio files)

Piano Keys questions

Can I play more than one note at once on Piano Keys?

Yes. Every note is separate, so pressing a few keys together gives you a chord, and each one rings until you let go of its key.

What do Octave and Key change?

Octave slides all 36 keys higher or lower, up to three octaves each way. Key transposes in half steps, up to twelve in either direction, so one hand pattern can play a song in many keys.

Why did my notes stop when I clicked somewhere else?

Switching to another window releases every note on purpose, so none get stuck humming. Click the piano again and keep going.

Why do some keys have no letter?

There aren't enough keyboard keys to cover the top four notes. Reach those with a click or a touch instead.

Can I play Piano Keys on a Chromebook or phone?

A Chromebook is ideal, since its keyboard covers 32 of the 36 notes. On a phone or tablet you can touch and hold keys, but the keys are small and there are no letter shortcuts.

More casual games

See all →