This component allows you to control any element on your page using arrow keys with realistic physics, including gravity, jumping, and momentum.
Make it with Workshop
Build your own component with AI
This component allows you to control any element on your page using arrow keys with realistic physics, including gravity, jumping, and momentum. It turns any component instance into a playable character that moves left and right, jumps, and responds to physics like friction and gravity.
This component a part of the 400+ components, layouts, templates, UI Kits and code overrides from SegmentUI PRO. Click here to see the full library
Add the Keyboard Physics Controller component onto your canvas
Connect a component instance to control by clicking the "Target Instance" property and selecting any component from your canvas (like an image, icon, or frame)
Customize the physics and behavior using the property controls—adjust move speed, gravity, jump velocity, friction, enable boundaries if needed, toggle flip on direction, set focus on hover, and choose your reset key
Preview or publish your site, then use arrow keys to move left/right, up arrow to jump, and the reset key (default: spacebar) to return to starting position
This is a code component that wraps around any component instance you want to control. Connect a component instance (like an image, frame, or illustration) to the "Target Instance" property, and it becomes controllable with arrow keys. The component includes extensive property controls to fine-tune the physics: adjust move speed for how fast it moves left/right, gravity for how quickly it falls, jump settings for how high and long jumps last, friction for how slidey the movement feels, and optional boundaries to keep it within a certain area. Additional options include flipping the instance horizontally when changing direction and focusing on hover so users don't need to click first.
When you purchase this component, you'll receive:
The Component Itself - Full access to the component all future updates
Remix File with Component Setup - A complete Remix file with the component pre-configured and ready to integrate into your project.
Setup Instructions - Clear, step-by-step instructions to help you implement the component quickly and correctly.
Dedicated Support - Direct access to our team for assistance if you encounter any issues during setup or implementation.
For any queries and help setting up the component, contact hello@segmentui.com
If a component does not function as advertised and the issue cannot be resolved, you are eligible for a full refund under our quality guarantee. Refunds will not be provided for any other reasons, including change of mind, accidental purchase, lack of use, or expectations of features not explicitly advertised.