Summarize the following:
Open the BlueStacks app and click a game you want to play. It's in the sidebar to the right.  This displays some keyboard control mapping options to the right. It's the option with a large white dot in the keyboard mapping options. When you press the key associated with this shortcut, a tap will occur where the shortcut is placed on the screen. Just press any key to assign it.  This key will perform the tap action.  You can do this for multiple tap locations on the screen. It's the icon that resembles two white dots stacked on top of each other.  This option allows you to assign a key for repeated taps. This is the location the keyboard shortcut will perform a repeated tap. This key will perform a repeated tap.  Use the up and down arrows next to the repeated tap location change the number or repeated taps it performs. Alternatively, you can click the toggle switch to make this perform a long-press. This will allow you to create a directional pad that you use with keys. By default, it appears in the center.  If your game has a directional circle in the lower-left corner, drag it to where the directional circle goes in the game. By default, the keys are "W" for up, "S" for down, "A" for left, and "D" right. It's the icon that resembles an aiming reticle. By default, "F1" is assigned to this function. It has an icon that resembles an eye. There are no default Free Look keys.  You will need to assign 4 keys to free look left, right, up, and down.  A good option to consider may be the up, down, left, and right, keys on the number pad, if they are not being used to anything else. Alternatively, you can click the toggle switch to switch Free Look mode between the keyboard and the mouse. It has an icon that resembles a finger swiping left and right. By default, the arrow keys are used to swipe up down, left, and right. It's the icon that resembles a phone rotating. There are no default keys assigned to tilting.  You will need to assign a key for each spot that is most comfortable for you.  A good option to consider may be the up, down, left, and right, keys on the number pad, if they are not being used to anything else. It's in the upper-right corner of the keyboard mapping options. This saves your keyboard configuration.

Summary:
Start a game in BlueStacks. Click the icon that resembles a keyboard. Click the "Tap" option. Click on the screen to add a tap shortcut. Assign a key to your tap shortcut. Click the repeated tap option. Click where you want to assign a repeated tap. Press a key you want to use to as repeated tap. Click the "D-Pad" option. Click on the screen where you want to place the directional pad. Click each pad direction and assign a key. Click the "Aim, Pan, and Shoot" icon. Assign a button you want to use to aim, pan, and shoot. Click the "Free Look" option. Assign free look buttons. Click the "Swipe" option. Assign keys to act as swipes. Click the "Tilt" option. Assign keys to used to tilt the phone up, down, left, and right. Click the X button. Click Save Changes.